<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        [title]{
            color:aqua;
        }
        [title=te]{
            color:red;
        }
    </style>
</head>
<body>
    <p title="t">属性选择器</p>
    <p title="te1">属性和值选择器</p>
</body>
</html>